import java.awt.Graphics;


public class Room {
	public int worldWidth = 22;
	public int worldHeight = 12; 
	public static int blockSize = 12; 
	public int blockSizeincrease = 10;
	
	public Block[][] block; 
	
	public Room() {
		define();
	}
	
	public void define() {
		block = new Block[worldHeight][worldWidth];
		
		for(int y = 0; y < block.length; y++) {
			for(int x = 0; x<block[0].length; x++) {
				block[y][x] = new Block( (Screen.myWidth/2) - ((worldWidth * (blockSize + blockSizeincrease))/2) + (x*(blockSize + blockSizeincrease)), 
						y* (blockSize + blockSizeincrease),
						blockSize + blockSizeincrease,
						blockSize + blockSizeincrease,
						Value.groundGold,
						Value.airAir);
			}
		}
	}
	
	public void physic() {
		
	}
	
	public void draw(Graphics g) {
		for(int y = 0; y < block.length; y++) {
			for(int x = 0; x<block[0].length; x++) {
				block[y][x].draw(g);
			}
		}
	}
}
